package com.project.service.impl;

import com.project.bean.ChannelBean;
import com.project.mapper.IChannelMapper;
import com.project.service.IChannelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
@Transactional
public class ChannelImpl implements IChannelService {
    @Autowired
    private IChannelMapper mapper;
    /**
     * 查询所有频道，并查询频道的主贴数
     *
     * @return 频道集合
     */
    @Override
    public List<ChannelBean> findChannels() {
        return mapper.findChannels();
    }
}
